package xiegd.study.kafka.springboot;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import xiegd.study.redis.RedisConfig;

/**
 * @Description:
 * @Author: xieguangda
 * @Date: 2021年06月30日 15:25
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = {KafkaConfig.class})
public class KafkaTest {

    @Autowired
    private KafkaSender kafkaSender;

    @Test
    public void testSend() throws  Exception{
        kafkaSender.send();
    }


    @Test
    public void testDelayConsumer() throws Exception{
        kafkaSender.sendAndDelayConsumer();
    }
}
